import { get, post, post_json } from '@/http/axios'
export default {
    namespaced: true,
    state: {
        categoryDate: []
    },
    mutations: {
        SET_CATGORYDATA(state, payload) {
            state.categoryDate = payload
        }
    },
    actions: {
        async getAllCategory({ commit }, payload) {
            let res = await get('/productCategory/pageQuery', payload)
            commit('SET_CATGORYDATA', res.data.data.list)
        }
    },
}